function closeDialog(){
	MsgBox.closeActiveDialog();
}
function searchByroleName(){
	roleManaPagination.resetPagination();
	queryRoleInfoListAjax.send();
}
function query(){
	queryHandleSettleListAjax.send();
}
function reset(){
	orgsStaffTree.checkAllNodes(false);
	$("#staffQueryFrm")[0].reset();
}
function exportExcel(){
	MsgBox.confirm("确认导出","导出确认",function(){
		exportExcelAjax.send();
	});
}
function exportExcelAll(){
	MsgBox.confirm("确认导出全部","导出确认",function(){
		exportExcelAllAjax.send();
	});
}


function onExportAllSucc(){
//	if(data.success == true){
		window.open("sms/queryHandleSettle/exportExcel");
//	}else{
//		new $.zui.Messager('数据为空!', {
//			type: 'success',
//			time: 2000,
//			placement:'center'
//		}).show();
//	}
}

function onExportSucc(data){
	if(data.success == true){
		var custName = $("#custName").val();
		var loanNo = $("#loanNo").val();
		var sendType = $("#sendType").val();
		var startDate = $("#startDate").val();
		var endDate = $("#endDate").val();
		window.open("sms/queryHandleSettle/exportExcel?custName="+custName+"&loanNo="+loanNo+"&sendType="+sendType+"&startDate="+startDate+"&endDate="+endDate);
	}else{
		new $.zui.Messager('导出失败！数据为空!', {
		    type: 'success',
		    time: 2000,
		    placement:'center'
		}).show();
	}
}
